home *** CD-ROM | disk | FTP | other *** search
/ Aminet 19 / Aminet 19 (1997)(GTI - Schatztruhe)[!][Jun 1997].iso / Aminet / disk / misc / idefix97.lha / IDE-fix / Install < prev    next >
Text File  |  1997-04-26  |  32KB  |  1,202 lines

  1. ;$VER: IDEfix Install 48.5 (26.04.97)
  2. ;Copyright ©1993-1997 Elaborate Bytes, Oliver Kastl
  3.  
  4. ( set #ControlDefault 1 )
  5.  
  6. (onerror
  7.     (makeassign "CacheCDFSInst" (safe))
  8.     (makeassign "CacheCDFS" (safe))
  9. )
  10.  
  11. (set #autoMount 1)
  12. (set #CDDevice_NC "CD" )
  13. (set #instEjectCD 1)
  14. (set #ReplaceOld 1 )
  15. (set #DeleteOld 1 )
  16.  
  17. (set #wbversion (getversion "libs:version.library"))
  18. (set #wbversion (/ #wbversion 65536) )
  19.  
  20. (complete 0)
  21.  
  22. (if (< #wbversion 37)
  23.     (abort "\n\nAmigaDOS 2.04 or higher is required for CacheCDFS! "
  24.              "\n\nAn upgrade will be needed for your Amiga." )
  25. )
  26.  
  27.  
  28. (if (< (getdiskspace "SYS:") 409600)
  29.     (abort "\n\nApproximately 400K of disk space is needed on your SYS: volume."
  30.              "\n\nYou only have " (/ (getdiskspace "SYS:") 1024)    "K free.\n\n"
  31.              "Delete or transfer some files from the SYS: volume and try again." )
  32. )
  33.  
  34. (makeassign "CacheCDFSInst" "" ( safe) )
  35.  
  36.  
  37. (set #theirlevel @user-level )
  38.  
  39. (set #Match ( run "CacheCDFSInst:CheckIDEfix" ( safe ) ) )
  40.  
  41. (user 2)
  42.  
  43. (message "\nWelcome to IDE-fix, CacheCDFS2, CD32-Emulator and PlayCD!"
  44.             "\n\nThis package is the complete solution for all your IDE and CD-ROM problems! " 
  45.          "\n\n"
  46.          "IDEfix allows you to use 4 harddisks and SyQuest drives with your IDE port, "
  47.          "ATAPI controls IDE CD-Roms, "
  48.          "CacheCDFS, PlayCD and CD32-Emulator power any IDE or SCSI-II CD-Rom!"
  49.          "\n\nEnjoy it! " )
  50.  
  51.  
  52. ( if (NOT @pretend )
  53.    (
  54.    (if ( run "CacheCDFSInst:Register/Register" )
  55.        (
  56.        (abort)
  57.        )
  58.     )
  59. ))
  60.  
  61. (set #DefaultDir (tackon @default-dest "IDEfix97"))
  62.  
  63. (set #CDFSDir
  64.     (askdir
  65.         (prompt "\n\nSpecify the directory in which the support programs will be placed:" )
  66.         (help "\n\nIDE-fix and CacheCDFS contain a number of support programs. "
  67.         "This directory will specifiy where the programs will be placed. "
  68.         "If you need, create a separate directory for the files.")
  69.         (default #DefaultDir)
  70.         (newpath)
  71.     )
  72. )
  73.  
  74. (user #theirlevel)
  75.  
  76. (if (NOT (exists #CDFSDir ))
  77.     (
  78.     (makedir #CDFSDir
  79.         (safe)
  80.         (infos)
  81.     )
  82.     )
  83. )
  84.  
  85. (set @default-dest #CDFSDir)
  86.  
  87.  
  88. (makeassign "CacheCDFS" #CDFSDir (safe))
  89.  
  90. (if (NOT (exists "CacheCDFS:Backup" ))
  91.     (
  92.  
  93.     (copyfiles
  94.         (source "CacheCDFSInst:C/BackupIDEFixInstall")
  95.         (prompt )
  96.         (help )
  97.         (infos)
  98.         (dest "CacheCDFS:")
  99.     )
  100.  
  101.     (copyfiles
  102.         (source "CacheCDFSInst:C/UnInstall")
  103.         (prompt )
  104.         (help )
  105.         (infos)
  106.         (dest "CacheCDFS:")
  107.     )
  108.  
  109.     (working "\nBacking up old installation ..." )
  110.  
  111.     
  112.     ( if (NOT @pretend )
  113.        (
  114.         (if ( run "CacheCDFS:BackupIDEfixInstall CacheCDFS:Backup save" )
  115.             (
  116.             (abort)
  117.             )
  118.         )
  119.     ))
  120.     )
  121. )
  122.  
  123. (if (exists "CacheCDFSInst:Installer" )
  124.     (
  125.     (copylib
  126.         (source "CacheCDFSInst:Installer")
  127.         (dest "SYS:Utilities")
  128.     )
  129. ))
  130.  
  131. (working "\nUpdating your System ..." )
  132.  
  133. ( if (NOT @pretend )
  134.    (
  135.     (if ( run "CacheCDFSInst:C/CopyIDELibs CacheCDFSInst:" )
  136.         (
  137.         (message "\n\nPlease reboot your Amiga and start this installation program again!" )
  138.         (makeassign "CacheCDFSInst" (safe))
  139.         (makeassign "CacheCDFS" (safe))
  140.         (exit (quiet ))
  141.         ))
  142.     )
  143. )
  144.  
  145. (copyfiles
  146.     (source "CacheCDFSInst:Register")
  147.     (prompt )
  148.     (help )
  149.     (infos)
  150.     (all)
  151.     (dest "CacheCDFS:Register")
  152. )
  153.     
  154. (tooltype
  155.     (dest "CacheCDFS:Register" )
  156.     (noposition)
  157. )
  158.  
  159. (copylib
  160.     (prompt "This will copy the FormatLS120 program to your C: directory.")
  161.     (help "This will copy the FormatLS120 program to your C: directory.")
  162.     (source "CacheCDFSInst:C/FormatLS120")
  163.     (confirm)
  164.     (dest "C:")
  165. )
  166.  
  167. (copyfiles
  168.     (prompt "This will copy Icons for the FormatLS120 and MountLS120 programs "
  169.         "to your Harddisk.")
  170.     (help "This will copy Icons for the FormatLS120 and MountLS120 programs "
  171.         "to your Harddisk.")
  172.     (source "CacheCDFSInst:LS120")
  173.     (infos)
  174.     (all)
  175.     (confirm)
  176.     (dest "CacheCDFS:LS120")
  177. )
  178.     
  179. (copyfiles
  180.     (source "CacheCDFSInst:C/InstallLS120")
  181.     (prompt )
  182.     (help )
  183.     (infos)
  184.     (dest "CacheCDFS:")
  185. )
  186.  
  187. (protect "CacheCDFS:FindDevice" "rwed" )
  188. (protect "CacheCDFS:FindDevice.info" "rwed" )
  189.  
  190. (copylib
  191.     (prompt "\n\nCopying the FindDevice program to the "
  192.               "CacheCDFS: directory.\n" )
  193.     (source "CacheCDFSInst:FindDevice")
  194.     (dest "CacheCDFS:")
  195.     (infos)
  196.     (safe)
  197.     (help "\n\nThis will copy over the FindDevice "
  198.             "program to your CacheCDFS: directory\n\nIf you do not "
  199.             "wish the FindDevice program to be transferred to your system, "
  200.             "skip this step." )
  201. )
  202.  
  203. (tooltype
  204.     (dest "CacheCDFS:FindDevice" )
  205.     (noposition)
  206. )
  207.  
  208.  
  209.     (copyfiles
  210.         (prompt "This will copy additional documentation "
  211.             "to your Harddisk. ")
  212.         (help "This will copy additional documentation "
  213.             "to your Harddisk. ")
  214.         (source "CacheCDFSInst:Docs")
  215.         (infos)
  216.         (all)
  217.         (confirm)
  218.         (dest "CacheCDFS:Docs")
  219.     )
  220.     
  221. (tooltype
  222.     (dest "CacheCDFS:Docs" )
  223.     (noposition)
  224. )
  225.  
  226.  
  227. (if (exists "CacheCDFS:FindCD" )
  228.     (
  229.     (protect "CacheCDFS:FindCD" "rwed" )
  230.     (delete "CacheCDFS:FindCD" )
  231.     )
  232. )
  233.  
  234. (if (exists "CacheCDFS:FindCD.info" )
  235.     (
  236.     (protect "CacheCDFS:FindCD.info" "rwed" )
  237.     (delete "CacheCDFS:FindCD.info" )
  238.     )
  239. )
  240.  
  241. (if (exists "L:TandemCacheCDFS" )
  242.     (
  243.     ((set #DeleteOld
  244.         (askbool
  245.         (prompt "\n\n\"L:TandemCacheCDFS\" is present from an earlier installation."
  246.                 "\n\nDelete \"L:TandemCacheCDFS\" ?" )
  247.         (help "\n\nClick \"YES\" if \"L:TandemCacheCDFS\" should be "
  248.               "deleted and \"NO\" if not!")
  249.         (default 1)
  250.         )
  251.     ))
  252.  
  253.     (if #DeleteOld
  254.     ((protect "L:TandemCacheCDFS" "rwed" )
  255.     (delete "L:TandemCacheCDFS" )
  256.     ))
  257. ))
  258.  
  259. (if (exists "L:DemoCacheCDFS" )
  260.     (
  261.     ((set #DeleteOld
  262.         (askbool
  263.         (prompt "\n\n\"L:DemoCacheCDFS\" is present from an earlier installation."
  264.                 "\n\nDelete \"L:DemoCacheCDFS\" ?" )
  265.         (help "\n\nClick \"YES\" if \"L:DemoCacheCDFS\" should be "
  266.               "deleted and \"NO\" if not!")
  267.         (default 1)
  268.         )
  269.     ))
  270.  
  271.     (if #DeleteOld
  272.     ((protect "L:DemoCacheCDFS" "rwed" )
  273.     (delete "L:DemoCacheCDFS" )
  274.     ))
  275. ))
  276.  
  277. (if (= #Match 0)
  278.     (
  279.     (copylib
  280.         (prompt "This will copy the Ship program to your C: directory.")
  281.         (help "This will copy the Ship program to your C: directory.")
  282.         (source "CacheCDFSInst:C/Ship")
  283.         (confirm)
  284.         (dest "C:")
  285.     )
  286.  
  287.     (copylib
  288.         (prompt "This will copy the MountIDE program to your C: directory.")
  289.         (help "This will copy the MountIDE program to your C: directory.")
  290.         (source "CacheCDFSInst:C/MountIDE")
  291.         (confirm)
  292.         (dest "C:")
  293.     )
  294.  
  295.     (copylib
  296.         (prompt "This will copy the ConvertDrive program to your C: directory.")
  297.         (help "This will copy the ConvertDrive program to your C: directory.")
  298.         (source "CacheCDFSInst:C/ConvertDrive")
  299.         (confirm)
  300.         (dest "C:")
  301.     )
  302.  
  303.     (copylib
  304.         (prompt "This will copy the AutoParkPrefs program to your SYS:Prefs directory.")
  305.         (help "This will copy the AutoParkPrefs program to your SYS:Prefs directory.")
  306.         (source "CacheCDFSInst:Prefs/AutoParkPrefs")
  307.         (infos)
  308.         (confirm)
  309.         (dest "SYS:Prefs")
  310.     )
  311.  
  312.     (tooltype
  313.         (dest "SYS:Prefs/AutoParkPrefs" )
  314.         (noposition)
  315.     )
  316.  
  317.     (copyfiles
  318.         (prompt "This will copy Icons for the Ship and MountIDE programs "
  319.             "to your Harddisk. You can copy these Icons wherever you like, e.g. in your "
  320.             "SYS:WBStartUp drawer.")
  321.         (help "This will copy Icons for the Ship and MountIDE programs "
  322.             "to your Harddisk. You can copy these Icons wherever you like, e.g. in your "
  323.             "SYS:WBStartUp drawer.")
  324.         (source "CacheCDFSInst:Harddisk")
  325.         (infos)
  326.         (all)
  327.         (confirm)
  328.         (dest "CacheCDFS:Harddisk")
  329.     )
  330.     
  331.  
  332.     (tooltype
  333.         (dest "CacheCDFS:Harddisk" )
  334.         (noposition)
  335.     )
  336.  
  337.     (user 2)
  338.  
  339.     (message "\nIMPORTANT:\n\n"
  340.                 "IDEfix and LoadIDE are installed in your C: "
  341.              "directory, but You MUST start IDEfix manually, as this program "
  342.              "will NOT alter your startup-sequence! "
  343.              "\n\nEnter \"IDEfix\" or \"LoadIDE reset\" behind SetPatch in your startup-sequence "
  344.              "to use IDEfix! "
  345.              "\n\nPlease click PROCEED now.")
  346.  
  347.     (message "\nNote:\n\nYou can use \"AutoParkPrefs\" in you SYS:Prefs directory to adjust autoparking "
  348.              "of your harddrives. Autoparking switches off the motor of a drive, if the drive is "
  349.              "not used for a certain amount of time."
  350.              "\n\nPlease click PROCEED now.")
  351.  
  352.     (message "\nNote:\n\nYou can use \"ConvertDrive\" to convert drives formatted with old controllers "
  353.              "like Apollo AT or GVP AT!\n\n"
  354.              "Enter \"ConvertDrive <device> <unit>\" from the Shell. "
  355.              "\n\nPlease click PROCEED now.")
  356.  
  357.     (message "\nNote:\n\n"
  358.              "Use \"Ship\" to park your harddisks!\n\n"
  359.              "Use \"MountIDE force\" to mount additional SyQuest cartridges!"
  360.              "\n\n\nClick PROCEED to install CD-ROMs.\n\nClick ABORT to quit.")
  361.  
  362.  
  363. ;    ( run "C:IDEfix" )
  364.     )
  365. )
  366.  
  367. (user 2)
  368.  
  369. (message "\n\nNow the FindDevice program will be launched to find "
  370.          "the Device and Unit of your CD-Rom..."
  371.          "\n\nYou may let the program scan for CD-Roms by clicking \"SCAN\"."
  372.          "\n\nChoose the device and unit and click \"USE\"!"
  373.          "\n\nIf FindDevice hangs: Reboot, start the installation again and "
  374.          "click CANCEL within FindDevice!")
  375.  
  376. (working "\n\nLaunching the FindDevice program to find "
  377.          "the Device and Unit of your CD-Rom..."
  378.          "\n\nYou may let the program scan for CD-Roms by clicking \"SCAN\"."
  379.          "\n\nChoose the device and unit and click \"USE\"!"
  380.          "\n\nIf FindDevice hangs: Reboot, start the installation again and "
  381.          "click CANCEL within FindDevice!")
  382.  
  383. (set #Product ( run "CacheCDFS:FindDevice" ( safe ) ) )
  384.  
  385.  
  386. (if (= #Product 0 )
  387.     (
  388.     ( set #CDROM_Device (getenv "CDROM_Device" ))
  389.     ( set #CDROM_Unit (+ (getenv "CDROM_Unit" )))
  390.     ( set #CDROM_NumLuns (+ (getenv "CDROM_NumLuns" )))
  391.     )
  392.  
  393.     (
  394.     ( set #CDROM_NumLuns 1)
  395.     (set #CDROM_Device
  396.         (askstring
  397.             (prompt "\n\nWhat is the name for the exec device driver? " )
  398.             (default "scsi.device" )
  399.             (help "\n\nThis is the name of the device driver to use. "
  400.                     "The name is different for different configurations. "
  401.                     "\n\nConsult the manual of your SCSI/CD-Rom host adapter "
  402.                     "if you don't know the name!" )
  403.         )
  404.     )
  405.  
  406.     (set #CDROM_Unit
  407.         (asknumber
  408.             (prompt "\n\nWhat is the Unit number of your CD-Rom drive?" )
  409.             (default 5 )
  410.             (help "\n\nThis is the unit # of the CD-Rom drive.  This is usually a "
  411.                     "numerical value between 0 and 7." )
  412.         )
  413.     )
  414.  
  415.     )
  416. )
  417.  
  418.     (set #CDROM_NumLuns
  419.         (asknumber
  420.             (prompt "\n\nHow many discs fit in your CD-Rom drive?" )
  421.             (default #CDROM_NumLuns )
  422.             (help "\nThis is the number of logical units of the CD-Rom drive. This is usually a "
  423.                     "numerical value between 1 and 8.\n\n"
  424.                     "If you have a normal CD-Rom, set this to 1.\n\n"
  425.                     "If you have a CD-Rom changer, enter the number of discs that fit in your drive!" )
  426.         )
  427.     )
  428.  
  429. (user #theirlevel)
  430.  
  431. (set #DevFlags 0)
  432.  
  433. (set #Match ( run "CacheCDFSInst:MatchPattern NAME="#CDROM_Device" PATTERN=(telmexatapi#?|#?pcmcia#?)" ( safe ) ) )
  434.  
  435. (if (= #Match 0)
  436.     (
  437.     (set #DevFlags 1)
  438.     )
  439. )
  440.  
  441. (set #Match ( run "CacheCDFSInst:MatchPattern NAME="#CDROM_Device" PATTERN=(tandem#?|#?atapi#?|oktagon#?)" ( safe ) ) )
  442.  
  443. (if (= #Match 0)
  444.     ((set #ControlDefault 2))
  445. )
  446.  
  447. (set #Match ( run "CacheCDFSInst:MatchPattern NAME="#CDROM_Device" PATTERN=(scsi.#?|???.scsi.#?)" ( safe ) ) )
  448.  
  449. (if (= #Match 0)
  450.     ((set #ControlDefault 5))
  451. )
  452.  
  453. (if (= #CDROM_Device "gvpscsi.device")
  454.     ((set #ControlDefault 8))
  455. )
  456.  
  457.  
  458. (complete 20 )
  459.  
  460. (user 2)
  461.  
  462. (set #ControlMask 
  463.     (askoptions
  464.         (prompt "FileSystem -> Controller Configuration")
  465.         (choices "Use SCSI Direct" 
  466.                     "Use Diskchange Interrupt"
  467.                     "Use 24 Bit-DMA"
  468.                     "Use Motor off" )
  469.         (help    "Here You may define the behaviour of the CacheCDFS accessing the " 
  470.               #CDROM_Device ". If you are "
  471.                 "not sure what option is correct, leave the default settings as they "
  472.                 "are. They should work in most cases.\n"
  473.                 "These options may later be altered using the CDFSprefs program. "
  474.                 "However, wrong settings may lead to crashes if you mount the "
  475.                 "FileSystem!\n"
  476.                 "IF YOU HAVE A TANDEMCD / CD1200: YOU MUST DISABLE \"USE SCSI DIRECT\"!\n\n"
  477.  
  478.                 "\"Use SCSI Direct\"\n"
  479.                 "Choose this option if the SCSI controller using "
  480.                 #CDROM_Device " cannot handle DoIO reads with 2048 bytes sectorsize "
  481.                 "correctly (e.g. ALFII, controllers from Progressive Peripherals, Emplant).\n"
  482.                 "Do NOT choose this option if your controller is a modern, well designed "
  483.                 "SCSI controller (ALFIII, Oktagon, A2091, A3000, A4091) or if it is "
  484.                 "NO SCSI controller at all (TandemCD)!\n\n"
  485.  
  486.                 "\"Use Diskchange Interrupt\"\n"
  487.                 "Choose this option if the controller using "
  488.                 #CDROM_Device " does properly handle TD_ADDCHANGEINT and TD_REMCHANGEINT. "
  489.                 "All modern controllers should do this (ALFIII, Oktagon, TandemCD, "
  490.                 "GVP Series-II)\n"
  491.                 "Do NOT choose this option if your controller has problems with diskchange "
  492.                 "Interrupts (old ROM versions of A2091, A3000, A4091, controllers from "
  493.                 "Progressive Peripherals, Emplant)\n\n"
  494.  
  495.                 "\"Use 24 Bit-DMA\"\n"
  496.                 "Choose this option if the SCSI or CD controller using "
  497.                 #CDROM_Device " is a 24-Bit (Zorro II) DMA device "
  498.                 "(e.g. A2091 from Commodore).\n"
  499.                 "Do NOT choose this option if your controller is a 32-Bit "
  500.                 "(Zorro III) device (e.g. FastLane, A3000, A4091), or a non-DMA controller "
  501.                 "like the majority of controllers (e.g. ALFII/III, Oktagon, "
  502.                 "TandemCD, Golem, IVS TrumpCard, Supra) as it will lead to "
  503.                 "decreased performance!\n\n"
  504.  
  505.                 "\"Use Motor off\"\n"
  506.                 "Choose this option if the SCSI controller using "
  507.                 #CDROM_Device " is a GVP controller with \"Faaast\" roms.\n"
  508.                 "Do NOT choose this option if your controller is anything else."
  509.             )
  510.         (default #ControlDefault)
  511.     )
  512. )
  513.  
  514. (set #BufMemType  "1 /* MEMF_PUBLIC */\n" )
  515. (set #BufMemInt  1 )
  516.  
  517. (if (IN #ControlMask 2)
  518.     (
  519.     (set #BufMemType  "513 /* MEMF_PUBLIC|MEMF_24BITDMA */\n")
  520.     (set #BufMemInt  513 )
  521.     )
  522. )
  523.  
  524. (set #Control "\"MD=0 LC=1 DC=8 L LV AL LFC=1")
  525.  
  526.  
  527. (if (IN #ControlMask 0)
  528.     (
  529.     (set #Control (cat #Control " S"))
  530.     )
  531. )
  532.  
  533. (if (NOT (IN #ControlMask 1))
  534.     (
  535.     (set #Control (cat #Control " NC"))
  536.     )
  537. )
  538.  
  539. (if (IN #ControlMask 3)
  540.     (
  541.     (set #Control (cat #Control " M"))
  542.     )
  543. )
  544.  
  545.  
  546. (set #Control (cat #Control "\"\n"))
  547.  
  548.  
  549. (set #autoMount
  550.     (askbool
  551.         (prompt "\n\nWould you like the CD-Rom drive automatically mounted upon bootup?\n\n"
  552.                 "NOTE: If you are unsure if your controller will work correctly with "
  553.                 "the controller settings, you should select \"NO\"!" )
  554.         (help "\n\nIf you would like, the appropriate commands will be added to your user-startup file to automatically mount CacheCDFS.")
  555.         (default 1)
  556.     )
  557. )
  558.  
  559.  
  560. (if #autoMount
  561.     (set #mountDirectory "DEVS:DOSDrivers")
  562. )
  563.  
  564. (if (not #autoMount)
  565.     (set #mountDirectory "SYS:Storage/DOSDrivers")
  566. )
  567.  
  568. (complete 30 )
  569.  
  570. (user 1)
  571.  
  572. (set #tempCDDevice_NC #CDDevice_NC )
  573. (set #CDROM_ID (/ #CDROM_Unit 100 ))
  574. (set #CDROM_ID (- #CDROM_Unit (* #CDROM_ID 100 )))
  575.  
  576. (if (> #CDROM_NumLuns 1 )
  577.     (
  578.     (if
  579.     ( NOT (askbool
  580.         (prompt "\nYour CD-Rom changer has " #CDROM_NumLuns " discs.\n\n"
  581.                 "Do you wish to access them through different device names?" )
  582.         (help "\n\nClicking YES will mount every disc individually.")
  583.         (default 1)
  584.     ))
  585.     (set #CDROM_NumLuns 1 )
  586.     )
  587.     )
  588. )
  589.  
  590. (set #SlotNumber 0 )
  591.  
  592. ( until (= #CDROM_NumLuns #SlotNumber )
  593.  
  594. (set #CD_DeviceUnit (+ #CDROM_ID (* #SlotNumber 10 )))
  595. (set #CDDevice_NC (cat #tempCDDevice_NC #CD_DeviceUnit))
  596.  
  597. (user 2)
  598.  
  599. (set #CDDevice_NC
  600.     (askstring
  601.         (prompt "\n\nWhat is the name for the AmigaDOS device?\n\n"
  602.         "(The trailing colon MUST NOT be present)" 
  603.         )
  604.         (default #CDDevice_NC )
  605.         (help "\n\nThis is the name under which AmigaDOS will reference the "
  606.                 "CD-Rom as.  While usually "
  607.                 #CDDevice_NC
  608.                 ", it can be any name you choose. "
  609.                 "\n\nThe trailing : (colon) MUST NOT be present." )
  610.     )
  611. )
  612.  
  613. (user #theirlevel)
  614.  
  615. (set #CDDevice (cat #CDDevice_NC ":") )
  616.  
  617. (if (< #wbversion 38)
  618.     ((set #startupCommand (cat "mount " #CDDevice " from devs:MountList." #CDDevice_NC "\n") )
  619.  
  620.     (if #autoMount
  621.         (
  622.  
  623.         (if (NOT (EXISTS "S:IDEfixUserStartup" ))
  624.         ((textfile
  625.             (dest "S:IDEfixUserStartup" )
  626.             (append "; IDEfix User Startup\n"
  627.                       "; © 1997 Elaborate Bytes, O. Kastl\n"
  628.                       "\n")
  629.             )
  630.         (protect "S:IDEfixUserStartup" "srwed" )
  631.         ))
  632.  
  633.         (startup "CacheCDFS"
  634.             (command "IF EXISTS S:IDEfixUserStartup\n"
  635.                      "   EXECUTE S:IDEfixUserStartup\n"
  636.                      "ENDIF\n" )
  637.             (prompt "\n\nInserting IDEfix User Startup into the user-startup")
  638.             (help "\n\nInserting IDEfix User Startup into the user-startup")
  639.         )
  640.  
  641.         (textfile
  642.         (dest "S:IDEfixUserStartup" )
  643.         (include "S:IDEfixUserStartup" )
  644.         (append #startupCommand )
  645.         )
  646.         )
  647.     )
  648.  
  649.     (if (exists (cat "devs:MountList." #CDDevice_NC ) )
  650.         ((set #ReplaceOld
  651.             (askbool
  652.             (prompt "\n\nDEVS:MountList." #CDDevice_NC" already exists!\n\n"
  653.                     "Do you want to replace it?" )
  654.             (help "\n\nClick \"YES\" if DEVS:MountList."#CDDevice_NC" should be "
  655.                   "replaced and \"NO\" if not!")
  656.             (default 1)
  657.             )
  658.         ))
  659.     )
  660.  
  661.     (if #ReplaceOld
  662.  
  663.     ((protect (cat "devs:MountList." #CDDevice_NC) "rwed" )
  664.  
  665.     (textfile
  666.         (dest (cat "devs:MountList." #CDDevice_NC) )
  667.         (append "/***************************************************************/\n"
  668.                   "/*  CacheCDFS mountlist entry © 1993 Elaborate Bytes, O. Kastl */\n"
  669.                   "/***************************************************************/\n")
  670.         (append #CDDevice "\n")
  671.         (append "    FileSystem     = L:CacheCDFS /* The name of the game */\n" )
  672.         (append "    Device         = \""#CDROM_Device"\" /* Name of exec device driver */\n" )
  673.         (append "    Unit           = " #CD_DeviceUnit " /* exec device unit */\n" )
  674.         (append "    Flags          = " #DevFlags " /* OpenDevice flags */\n")
  675.         (append "    BlocksPerTrack = 351000 /* Unused */\n")
  676.         (append "    BlockSize      = 2048 /* True, but unused */\n")
  677.         (append "    Mask           = 0x7ffffffe /* Memory mask for direct read */\n")
  678.         (append "    MaxTransfer    = 0x1000000 /* Maximum amount of bytes for direct read */\n")
  679.         (append "    Reserved       = 0 /* Unused */\n")
  680.         (append "    Interleave     = 0 /* Unused */\n")
  681.         (append "    LowCyl         = 0 /* Unused */\n")
  682.         (append "    HighCyl        = 0 /* Unused */\n")
  683.         (append "    Surfaces       = 1 /* Unused */\n")
  684.         (append "    Buffers        = 50 /* Number of cache lines */\n")
  685.         (append "    BufMemType     = " #BufMemType )
  686.         (append "    GlobVec        = -1 /* Do not change! */\n")
  687.         (append "    Mount          = 1 /* Mount it immediately */\n")
  688.         (append "    Priority       = 10 /* Priority of FileSystem task */\n")
  689.         (append "    DosType        = 0x43443031 /* Currently unused */\n")
  690.         (append "    StackSize      = 3000 /* Minimum stack required is 3000! */\n")
  691.         (append "    Control        = "#Control)
  692.         (append "   /* The Control field is for special adjustments */\n")
  693.         (append "   /* L/S convert all file names to lowercase */\n")
  694.         (append "   /* LV/S convert volume names to lowercase */\n")
  695.         (append "   /* AL/S Auto-Lower converts only non-Amiga CDs */\n")
  696.         (append "   /* LFC/N start converting at this character */\n")
  697.         (append "   /* LC/N/A number of blocks per cache line */\n")
  698.         (append "   /* DC/N/A number of cache lines for the data cache */\n")
  699.         (append "   /* MD/N/A number of blocks, when starting direct read, not using */\n")
  700.         (append "   /* the cache. 0 will be a reasonable default (LC*DC+1) */\n")
  701.         (append "   /* S/S Do SCSI direct commands, no Trackdisk like commands! */\n")
  702.         (append "   /* NC/S Do NOT use TD_ADDCHANGEINT, poll for DiskChange! */\n")
  703.         (append "   /* M/S Issue a TD_MOTOR (OFF) command after read */\n")
  704.         (append "#\n")
  705.     )
  706.     (protect (cat "devs:MountList." #CDDevice_NC) "-e" )
  707.     )
  708.     )
  709. ))
  710.  
  711.  
  712.  
  713. (if (> #wbversion 37)
  714.     (
  715.  
  716.     (if (exists (tackon #mountDirectory #CDDevice_NC ) )
  717.         ((set #ReplaceOld
  718.             (askbool
  719.             (prompt "\n\n" (tackon #mountDirectory #CDDevice_NC) " already exists!\n\n"
  720.                     "Do you want to replace it?" )
  721.             (help "\n\nClick \"YES\" if " (tackon #mountDirectory #CDDevice_NC) " should be "
  722.                   "replaced and \"NO\" if not!")
  723.             (default 1)
  724.             )
  725.         ))
  726.     )
  727.  
  728.     (if #ReplaceOld
  729.  
  730.     ((protect (tackon #mountDirectory #CDDevice_NC) "rwed" )
  731.  
  732.     (textfile
  733.         (dest (tackon #mountDirectory #CDDevice_NC) )
  734.         (append "/***************************************************************/\n"
  735.                   "/*  CacheCDFS mountlist entry © 1993 Elaborate Bytes, O. Kastl */\n"
  736.                   "/***************************************************************/\n")
  737.         (append "    FileSystem     = L:CacheCDFS /* The name of the game */\n" )
  738.         (append "    Device         = \""#CDROM_Device"\" /* Name of exec device driver */\n" )
  739.         (append "    Unit           = " #CD_DeviceUnit " /* exec device unit */\n" )
  740.         (append "    Flags          = " #DevFlags " /* OpenDevice flags */\n")
  741.         (append "    BlocksPerTrack = 351000 /* Unused */\n")
  742.         (append "    BlockSize      = 2048 /* True, but unused */\n")
  743.         (append "    Mask           = 0x7ffffffe /* Memory mask for direct read */\n")
  744.         (append "    MaxTransfer    = 0x1000000 /* Maximum amount of bytes for direct read */\n")
  745.         (append "    Reserved       = 0 /* Unused */\n")
  746.         (append "    Interleave     = 0 /* Unused */\n")
  747.         (append "    LowCyl         = 0 /* Unused */\n")
  748.         (append "    HighCyl        = 0 /* Unused */\n")
  749.         (append "    Surfaces       = 1 /* Unused */\n")
  750.         (append "    Buffers        = 50 /* Number of cache lines */\n")
  751.         (append "    BufMemType     = " #BufMemType )
  752.         (append "    GlobVec        = -1 /* Do not change! */\n")
  753.         (append "    Mount          = 1 /* Mount it immediately */\n")
  754.         (append "    Priority       = 10 /* Priority of FileSystem task */\n")
  755.         (append "    DosType        = 0x43443031 /* Currently unused */\n")
  756.         (append "    StackSize      = 3000 /* Minimum stack required is 3000! */\n")
  757.         (append "    Control        = "#Control)
  758.         (append "   /* The Control field is for special adjustments */\n")
  759.         (append "   /* L/S convert all file/volume names to lowercase */\n")
  760.         (append "   /* LV/S convert volume names to lowercase */\n")
  761.         (append "   /* AL/S Auto-Lower converts only non-Amiga CDs */\n")
  762.         (append "   /* LFC/N start converting at this character */\n")
  763.         (append "   /* LC/N/A number of blocks per cache line */\n")
  764.         (append "   /* DC/N/A number of cache lines for the data cache */\n")
  765.         (append "   /* MD/N/A number of blocks, when starting direct read, not using */\n")
  766.         (append "   /* the cache. 0 will be a reasonable default (LC*DC+1) */\n")
  767.         (append "   /* S/S Do SCSI direct commands, no Trackdisk like commands! */\n")
  768.         (append "   /* NC/S Do NOT use TD_ADDCHANGEINT, poll for DiskChange! */\n")
  769.         (append "   /* M/S Issue a TD_MOTOR (OFF) command after read */\n")
  770.     )
  771.  
  772.     (protect (tackon #mountDirectory #CDDevice_NC) "-e" )
  773.  
  774.     (copyfiles
  775.             (prompt "\n\nCopying Mountlist icon")
  776.             (source "CacheCDFSInst:Devs/DOSDrivers/CD0.info")
  777.             (dest #mountDirectory)
  778.             (newname (cat #CDDevice_NC ".info"))
  779.             (help "\n\nThis will copy over an icon for the mountlist file.")
  780.             (confirm)
  781.  
  782.     ))
  783.     )
  784.  
  785.     (protect "S:User-Startup" "srwed" )
  786.     (startup "CacheCDFS"
  787.         (prompt "\n\nRemoving MOUNT command from the startup-sequence")
  788.         (help "\n\nThe command \"MOUNT " #CDDevice " FROM DEVS:MOUNTLIST." #CDDevice_NC "\" will be removed from your "
  789.                 "\"S:Startup-Sequence\" or \"S:User-Startup\" file if it is present from "
  790.                 "an earlier installation." )
  791.         )
  792.  
  793.     (if ( exists ( cat "devs:MountList." #CDDevice_NC ) )
  794.  
  795.         ((protect (cat "devs:MountList." #CDDevice_NC) "rwed " )
  796.         (delete (cat "devs:MountList." #CDDevice_NC)
  797.             (prompt "\n\nDeleting file \"DEVS:MOUNTLIST." #CDDevice_NC "\"" )
  798.             (help "\n\nThe file \"DEVS:MOUNTLIST." #CDDevice_NC "\" will be deleted "
  799.                     "if it is present from an earlier installation." )
  800.             (confirm)
  801.             )
  802.         ))
  803.     )
  804. )
  805.  
  806. (set #SlotNumber (+ #SlotNumber 1 ))
  807.  
  808. )
  809.  
  810. (complete 40 )
  811.  
  812. (if ( NOT (= #theirlevel 2 ) )
  813.     (
  814.     (set #instChanger ( NOT ( run "CacheCDFSInst:Changer DEVICE="#CDROM_Device" UNIT="#CDROM_Unit" TEST" ( safe ) ) ) )
  815.     )
  816. )
  817.  
  818. (if (= #theirlevel 2 )
  819.     (
  820.     (set #instChanger 1)
  821.     )
  822. )
  823.  
  824. (if #instChanger
  825.     ((set #instChanger
  826.         (askbool
  827.             (prompt "\n\nShould the ATAPI Changer utility be installed?\n\n"
  828.                       "NOTE: This program is only required, if you have an ATAPI "
  829.                       "CD-ROM changer!" )
  830.             (help "\n\nThis will copy over the ATAPI Changer utility "
  831.                     "to your harddisk.\n\nIf you do not "
  832.                     "wish the Changer program to be transferred to your system, "
  833.                     "skip this step.\n" )
  834.             (default 1)
  835.         )
  836.     )
  837. ))
  838.  
  839. (if #instChanger
  840.     (
  841.     (if (exists "CacheCDFS:AtapiChanger" )
  842.         (
  843.         (protect "CacheCDFS:AtapiChanger" "rwed" )
  844.         (delete "CacheCDFS:AtapiChanger" )
  845.         )
  846.     )
  847.  
  848.     (if (exists "CacheCDFS:AtapiChanger.info" )
  849.         (
  850.         (protect "CacheCDFS:AtapiChanger.info" "rwed" )
  851.         (delete "CacheCDFS:AtapiChanger.info" )
  852.         )
  853.     )
  854.  
  855.     (protect "CacheCDFS:Changer" "rwed" )
  856.     (protect "CacheCDFS:Changer.info" "rwed" )
  857.     (copylib
  858.         (prompt "\n\nCopying the Changer program to the "
  859.                   "CacheCDFS: directory." )
  860.         (source "CacheCDFSInst:Changer")
  861.         (dest "CacheCDFS:")
  862.         (help "\n\nThis will copy over the ATAPI Changer utility "
  863.                 "to your harddisk.\n\nIf you do not "
  864.                 "wish the Changer program to be transferred to your system, "
  865.                 "skip this step.\n" )
  866.         (infos)
  867.         (confirm)
  868.     )
  869.  
  870.     (tooltype
  871.         (dest "CacheCDFS:Changer" )
  872.         (settooltype "DEVICE" #CDROM_Device )
  873.         (settooltype "UNIT" ("%ld" #CDROM_Unit ))
  874.         (noposition)
  875.     )
  876. ))
  877.  
  878. (complete 50 )
  879.  
  880. (set #instCDFSprefs
  881.     (askbool
  882.         (prompt "\n\nShould the CDFSprefs utility be installed?")
  883.         (help "\n\nThis will copy over the CDFSprefs utility "
  884.                 "to your SYS:Prefs directory\n\nIf you do not "
  885.                 "wish the CDFSprefs program to be transferred to your system, "
  886.                 "skip this step.\n" )
  887.         (default 1)
  888.     )
  889. )
  890.  
  891. (if #instCDFSprefs
  892.     ((protect "SYS:Prefs/CDFSprefs" "rwed" )
  893.     (protect "SYS:Prefs/CDFSprefs.info" "rwed" )
  894.     (copylib
  895.         (prompt "\n\nCopying the CDFSprefs program to the "
  896.                   "SYS:Prefs directory." )
  897.         (source "CacheCDFSInst:Prefs/CDFSprefs")
  898.         (dest "SYS:Prefs")
  899.         (infos)
  900.         (help "\n\nThis will copy over the CDFSprefs "
  901.                 "program to your SYS:Prefs directory\n\nIf you do not "
  902.                 "wish the CDFSprefs program to be transferred to your system, "
  903.                 "skip this step." )
  904.         (confirm)
  905.     )
  906.  
  907.     (tooltype
  908.         (dest "SYS:Prefs/CDFSprefs" )
  909.         (noposition)
  910.     )
  911. ))
  912.  
  913. (complete 60 )
  914.  
  915. (set #instKillDev
  916.     (askbool
  917.         (prompt "\n\nShould the KillDev utility be installed?")
  918.         (help "\n\nThis will copy over the KillDev utility "
  919.                 "to your CacheCDFS directory\n\nIf you do not "
  920.                 "wish the KillDev program to be transferred to your system, "
  921.                 "skip this step." )
  922.         (default 1)
  923.     )
  924. )
  925.  
  926. (if #instKillDev
  927.     ((protect "CacheCDFS:KillDev" "rwed" )
  928.     (protect "CacheCDFS:KillDev.info" "rwed" )
  929.     (copylib
  930.         (prompt "\n\nCopying the KillDev program to the "
  931.                   "CacheCDFS: directory.\n" )
  932.         (source "CacheCDFSInst:KillDev")
  933.         (dest "CacheCDFS:")
  934.         (infos)
  935.         (help "\n\nThis will copy over the KillDev "
  936.                 "program to your CacheCDFS: directory\n\nIf you do not "
  937.                 "wish the KillDev program to be transferred to your system, "
  938.                 "skip this step." )
  939.         (confirm)
  940.     )
  941.  
  942.     (tooltype
  943.         (dest "CacheCDFS:KillDev" )
  944.         (settooltype "DOSDEV" #CDDevice )
  945.         (noposition)
  946.     )
  947. ))
  948.  
  949. (complete 70 )
  950.  
  951.  
  952. (if #instEjectCD
  953.     (
  954.     (set #instEjectCD
  955.     (askbool
  956.         (prompt "\n\nShould the EjectCD utility be installed?")
  957.         (help "\n\nThis will copy over the EjectCD utility "
  958.                 "to your CDFS directory\n\nIf you do not "
  959.                 "wish the EjectCD program to be transferred to your system, "
  960.                 "skip this step.\n" )
  961.         (default 1)
  962.     )
  963.     ))
  964. )
  965.  
  966. (if #instEjectCD
  967.     ((protect "CacheCDFS:EjectCD" "rwed" )
  968.     (protect "CacheCDFS:EjectCD.info" "rwed" )
  969.     (copylib
  970.         (prompt "\n\nCopying EjectCD program to the "
  971.                   "CacheCDFS: directory.\n" )
  972.         (source "CacheCDFSInst:EjectCD")
  973.         (dest "CacheCDFS:")
  974.         (help "\n\nThis will copy over the EjectCD utility "
  975.                 "to your CacheCDFS directory\n\nIf you do not "
  976.                 "wish the EjectCD program to be transferred to your system, "
  977.                 "skip this step.\n" )
  978.         (infos)
  979.         (confirm)
  980.     )
  981.  
  982.     (tooltype
  983.         (dest "CacheCDFS:EjectCD" )
  984.         (settooltype "DEVICE" #CDROM_Device )
  985.         (settooltype "UNIT" ("%ld" #CDROM_Unit ))
  986.         (noposition)
  987.     )
  988. ))
  989.  
  990. (set #instPlayCD 0)
  991.  
  992. (if (exists "CacheCDFSInst:PlayCD.lha")
  993.  
  994. ((set #instPlayCD
  995.     (askbool
  996.         (prompt "\n\nShould the PlayCD Audio Player be installed?")
  997.         (help "\n\nThis will copy over the PlayCD drawer "
  998.                 "to your CacheCDFS directory\n\nIf you do not "
  999.                 "wish the PlayCD drawer to be transferred to your system, "
  1000.                 "skip this step." )
  1001.         (default 1)
  1002.     )
  1003. )))
  1004.  
  1005. (if #instPlayCD
  1006.     (
  1007.  
  1008.     (working "\n\nDecrunching PlayCD...."
  1009.              "\n\nPlease Wait!")
  1010.  
  1011.     ( if (NOT @pretend )
  1012.     (( if ( run "CacheCDFSInst:c/lhex -afFqw=CacheCDFS: e CacheCDFSInst:PlayCD.lha" )
  1013.         (
  1014.         (abort "\n\nUnable to decrunch PlayCD!")
  1015.         )
  1016.     )))
  1017.  
  1018.  
  1019.     (tooltype
  1020.         (dest "CacheCDFS:PlayCD/PlayCD" )
  1021.         (settooltype "DEVICE" #CDROM_Device )
  1022.         (settooltype "UNIT" ("%ld" #CDROM_Unit ))
  1023.         (settooltype "BUFMEMTYPE" ("%ld" #BufMemInt ))
  1024.     )
  1025.     )
  1026. )
  1027.  
  1028. (complete 80 )
  1029.  
  1030.  
  1031. (set #instJukebox 0)
  1032.  
  1033. (if (exists "CacheCDFSInst:JukeBox.lha")
  1034. ((set #instJukebox
  1035.     (askbool
  1036.         (prompt "\n\nShould the JukeBox Audio Player be installed?")
  1037.         (help "\n\nThis will copy over the JukeBox drawer "
  1038.                 "to your CacheCDFS directory\n\nIf you do not "
  1039.                 "wish the JukeBox drawer to be transferred to your system, "
  1040.                 "skip this step." )
  1041.         (default 1)
  1042.     )
  1043. )))
  1044.  
  1045. (if #instJukebox
  1046.     (
  1047.     (protect "CacheCDFS:JukeBox" "rwed" )
  1048.     (protect "CacheCDFS:JukeBox.info" "rwed" )
  1049.     (makedir "CacheCDFS:JukeBox" 
  1050.         (infos)
  1051.         (prompt "\n\nCreating drawer for JukeBox\n")
  1052.         (help "\n\nThis will create a drawer for the JukeBox "
  1053.                 "Audio Player." )
  1054.     )
  1055.  
  1056.  
  1057. (working "\n\nDecrunching Jukebox...."
  1058.          "\n\nPlease Wait!")
  1059.  
  1060.     ( if (NOT @pretend )
  1061.     (( if ( run "CacheCDFSInst:c/lhex -qafFw=CacheCDFS:Jukebox e CacheCDFSInst:JukeBox.lha" )
  1062.         (
  1063.         (makeassign "JukeBox")
  1064.         (abort "\n\nUnable to decrunch JukeBox!")
  1065.         )
  1066.     )))
  1067.  
  1068.  
  1069.     (tooltype
  1070.         (dest "CacheCDFS:Jukebox/JukeBox" )
  1071.         (settooltype "DEVICE" #CDROM_Device )
  1072.         (settooltype "UNIT" ("%ld" #CDROM_Unit ))
  1073.     )
  1074.  
  1075. ))
  1076.  
  1077.  
  1078. (if (AND (> #wbversion 38) (exists "CacheCDFSInst:CD32.lha"))
  1079.  
  1080.     ((complete 90 )
  1081.  
  1082.     (set #instCD32
  1083.         (askbool
  1084.             (prompt "\n\nShould the CD32-Emulator be installed?"
  1085.                     "\n\nNote that the CD32-Emulator is completely useless "
  1086.                     "if you don't have an Amiga with AA/AGA chipset and "
  1087.                     "at least Kickstart version 3.0!")
  1088.             (help "\n\nThis will copy over the CD32 drawer "
  1089.                     "to your CacheCDFS directory\n\nIf you do not "
  1090.                     "wish the CD32 drawer to be transferred to your system, "
  1091.                     "skip this step.")
  1092.             (default 1)
  1093.         )
  1094.     )
  1095.  
  1096.     (if #instCD32
  1097.         (
  1098.         (working "\n\nDecrunching CD32...."
  1099.                  "\n\nPlease Wait!")
  1100.  
  1101.         ( if (NOT @pretend )
  1102.         (( if ( run "CacheCDFSInst:c/lhex -afFqw=CacheCDFS: e CacheCDFSInst:CD32.lha" )
  1103.             (
  1104.             (abort "\n\nUnable to decrunch CD32!")
  1105.             )
  1106.         )))
  1107.  
  1108.     
  1109.         (if (exists "CacheCDFSInst:CD32" )
  1110.             ((copylib
  1111.                 (prompt "This will copy the CD32 program.")
  1112.                 (help "This will copy the CD32 program.")
  1113.                 (source "CacheCDFSInst:CD32")
  1114.                 (infos)
  1115.                 (dest "CacheCDFS:CD32")
  1116.                 (confirm)
  1117.             ))
  1118.         )
  1119.  
  1120.  
  1121.         ( set #CDROM_Blocks 2 )
  1122.  
  1123.         (if (= #CDROM_Device "tandemcd.device")
  1124.             (
  1125.             ( set #CDROM_Blocks 4 )
  1126.             )
  1127.         )
  1128.  
  1129.         (if (= #CDROM_Device "tandemat.device")
  1130.             (
  1131.             ( set #CDROM_Blocks 4 )
  1132.             )
  1133.         )
  1134.  
  1135.         (if (= #CDROM_Device "tandemcd_pcmcia.device")
  1136.             (
  1137.             ( set #CDROM_Blocks 4 )
  1138.             )
  1139.         )
  1140.  
  1141.         (if (= #CDROM_Device "tandemcd_come.device")
  1142.             (
  1143.             ( set #CDROM_Blocks 4 )
  1144.             )
  1145.         )
  1146.  
  1147.         (tooltype
  1148.             (dest "CacheCDFS:CD32/CD32" )
  1149.             (settooltype "BLOCKS" ("%ld" #CDROM_Blocks ) )
  1150.             (settooltype "DOSDEV" #CDDevice_NC)
  1151.             )
  1152.  
  1153.     ))
  1154. ))
  1155.  
  1156. (complete 100 )
  1157.  
  1158. (set #doMount
  1159.     (askbool
  1160.     (prompt "\n\nMount CD-Rom now ?")
  1161.     (help "Select, if your CD-Rom should be mounted now, or not.")
  1162.     (default 1)
  1163.     )
  1164. )
  1165.  
  1166. ( if @pretend ((set #doMount 0))) 
  1167.  
  1168. (if #doMount
  1169.     (
  1170.     (set #SlotNumber 0 )
  1171.  
  1172.     (working "\n\nMounting CD-Rom...."
  1173.              "\n\nPlease Wait!")
  1174.  
  1175.     ( until (= #CDROM_NumLuns #SlotNumber )
  1176.  
  1177.         (set #CD_DeviceUnit (+ #CDROM_ID (* #SlotNumber 10 )))
  1178.         (set #CDDevice_NC (cat #tempCDDevice_NC #CD_DeviceUnit))
  1179.         (set #CDDevice (cat #CDDevice_NC ":") )
  1180.  
  1181.         ( run (cat "CacheCDFSInst:KillDev " #CDDevice " Quiet"))
  1182.  
  1183.         (if (< #wbversion 38)
  1184.             (
  1185.             (run (cat "C:Mount " #CDDevice " from devs:MountList." #CDDevice_NC ))
  1186.             )
  1187.         )
  1188.  
  1189.         (if (> #wbversion 37)
  1190.             (
  1191.                 (run (cat "C:Mount " #CDDevice  ))
  1192.             )
  1193.         )
  1194.     (set #SlotNumber (+ #SlotNumber 1 ))
  1195.     )
  1196. ))
  1197.  
  1198.  
  1199. (makeassign "CacheCDFSInst" (safe))
  1200. (makeassign "CacheCDFS" (safe))
  1201.  
  1202.